Skip to content

fix: enforce admin auth inside treasury mutations - #221

Merged
N-thnI merged 1 commit into
Vero-protocol:mainfrom
Divine-mercyx:fix/issue-204-treasury-access-control
Aug 22, 2026
Merged

fix: enforce admin auth inside treasury mutations#221
N-thnI merged 1 commit into
Vero-protocol:mainfrom
Divine-mercyx:fix/issue-204-treasury-access-control

Conversation

@Divine-mercyx

Copy link
Copy Markdown
Contributor

Summary

Add caller authentication inside engine-core/src/treasury.rs itself, so fund outflows and snapshot writes cannot be invoked without an authorized admin even after they are wired into ControlPlane.

Related Issue

Closes #204

Changes Made

Testing Performed

  • Unit tests pass (cargo test --manifest-path engine-core/Cargo.toml --lib — 92 passed)
  • Integration tests pass
  • Manual smoke test performed

Checklist

  • Branch follows naming convention (feat/, fix/, chore/, etc.)
  • Closes #204 reference is present above (linking this PR to the issue)
  • Code follows the project's style and conventions
  • New or updated tests cover the changes
  • Documentation updated if behaviour changed
  • No secrets, credentials, or sensitive data committed
  • PR is scoped to a single concern (one issue per PR)

Made with Cursor

Schedule, execute, and snapshot paths now require an authenticated treasury
admin so later ControlPlane wiring cannot omit the check.

Co-authored-by: Cursor <cursoragent@cursor.com>
@N-thnI
N-thnI merged commit 042b18e into Vero-protocol:main Aug 22, 2026
4 checks passed
@N-thnI

N-thnI commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Merged — thanks for the contribution! If you've got a moment, a rating on GrantFox helps the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

treasury.rs state-changing functions have zero internal access control

2 participants